#ifndef LIGHTHANDLERTHREAD_H
#define LIGHTHANDLERTHREAD_H

#include <OpenThreads/Thread>
#include <OpenThreads/Mutex>
#include <OpenThreads/Barrier>
#include "LightHandler.h"

class LightHandlerThread : public OpenThreads::Thread {
	
public:

	LightHandlerThread(LightHandler* lightHandler, const int action,
			const int sleep);
	~LightHandlerThread();
	virtual void run();
	void reset();
	void quit();

private:
	bool _quitflagL;
	LightHandler* _lightHandler;
	int _actionL, _sleepL;
	OpenThreads::Mutex _quitmutexL;

};
#endif
